package gui.model;

import gui.view.buySellFrame;
import gui.view.loginFrame;
import gui.view.mainFrame;
import gui.view.registerFrame;
import gui.view.viewFrame;
import gui.view.withdrawFrame;

public class model {

	private buySellFrame bsFrame;
	private loginFrame lFrame;
	private registerFrame rFrame;
	private mainFrame mFrame;
	private viewFrame vFrame;
	private withdrawFrame wFrame;
	
	public model()
	{
		bsFrame = new buySellFrame(this);
		lFrame = new loginFrame(this);
		rFrame = new registerFrame(this);
		mFrame = new mainFrame(this); //create and save all frames
		vFrame = new viewFrame(this);
		wFrame = new withdrawFrame(this);
	}
	
	/**
	 * Return Buy/Sell frame, no arguments
	 */
	public buySellFrame getBuySellFrame()
	{
		return bsFrame;
	}
	
	/**
	 * Return login frame, no arguments
	 */
	public loginFrame getLoginFrame()
	{
		return lFrame;
	}
	
	/**
	 * Return register frame, no arguments
	 */
	public registerFrame getRegisterFrame()
	{
		return rFrame;
	}
	
	/**
	 * Return main frame, no arguments
	 */
	public mainFrame getMainFrame()
	{
		return mFrame;
	}
	
	/**
	 * Return view frame, no arguments
	 */
	public viewFrame getViewFrame()
	{
		return vFrame;
	}
	
	/**
	 * Return withdraw frame, no arguments
	 */
	public withdrawFrame getWithdrawFrame()
	{
		return wFrame;
	}
}
